class Person{
    protected String Name;
    protected String Sex;
    protected String ID;
    public Person(String name, String sex, String id){
        Name = name;
        Sex = sex;
        ID = id;
    }
    public void setName(String name) {
        Name = name;
    }
    public void setSex(String sex) {
        Sex = sex;
    }
    public void setID(String ID) {
        this.ID = ID;
    }
    public String getName() {
        return Name;
    }
    public String getSex() {
        return Sex;
    }
    public String getID() {
        return ID;
    }
}

class Course{
    protected String No;
    protected String Name;
    protected String Type;
    public Course(String no, String name, String type){
        No = no;
        Name = name;
        Type = type;
    }
    public void setNo(String no) {
        No = no;
    }
    public void setName(String name) {
        Name = name;
    }
    public void setType(String type) {
        Type = type;
    }
    public String getNo() {
        return No;
    }
    public String getName() {
        return Name;
    }
    public String getType() {
        return Type;
    }
    public void Show(){
        System.out.println("课程编码："+No+"  课程名称："+Name+"  类型："+Type);
    }
}

class Teacher extends Person{
    protected String Num;
    public Teacher(String name, String sex, String id, String num){
        super(name, sex, id);
        Num = num;
    }
    public void setNum(String num) {
        Num = num;
    }
    public String getNum() {
        return Num;
    }
    public void Show(){
        System.out.println("教工号："+Num+"  姓名："+Name+"  性别："+Sex+"  身份证号码："+ID);
    }
}

class Student extends Person{
    protected String Num;
    public Student(String name, String sex, String id, String num){
        super(name, sex, id);
        Num = num;
    }
    public void setNum(String num) {
        Num = num;
    }
    public String getNum() {
        return Num;
    }
    public void Show(){
        System.out.println("学号："+Num+"  姓名："+Name+"  性别："+Sex+"  身份证号码："+ID);
    }
}

public class Test {
    public static void main(String[] args){
        Teacher teacher = new Teacher("唐大英","男","220106197105280011","131021");
        Student student = new Student("诸葛去","男","160106199302190011","201015340101");
        Course course = new Course("110103","高等数学","考试");
        teacher.Show();
        student.Show();
        course.Show();
    }
}